/*
 * TCPServer.h
 *
 *  Created on: 03.06.2010
 *      Author: stg7
 */

#ifndef TCPSERVER_H_
#define TCPSERVER_H_
#include<iostream>
#include<string>


// Socket headers
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

using namespace std;

class TCPServer {
private:
	int serverSocketId;
	int clientSocketId;
	// PostProcessor postprocessor

	void handleClient();


public:
	TCPServer(); // parameter PostProcessor postprocessor
	int start();
	void waitForClient();
	void sendDataToClient(string data);

	virtual ~TCPServer();
};

#endif /* TCPSERVER_H_ */
